package com.yuxl.common.auth.entity;

import java.time.LocalDateTime;
import java.util.List;

import com.yuxl.common.core.domain.Sort;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.experimental.Accessors;
import org.springframework.data.relational.core.mapping.Table;
import org.springframework.data.annotation.Transient;
import org.springframework.data.annotation.Id;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * @author yuxl
 */
@Schema(description = "用户实体")
@Table("auth_user")
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class AuthUser extends Sort {
    @Id
    @Schema(description = "用户ID")
    private Long id;
    @Transient
    @Schema(description = "查询用的ids（非数据库字段）")
    private List<Long> ids;
    @Schema(description = "图标")
    private String avatar;
    @Schema(description = "昵称")
    private String nickname;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "加密密码")
    private String password;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
} 